package com.dudu.controller;

import cn.dev33.satoken.util.SaResult;
import com.dudu.qo.OrderQo;
import com.dudu.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 小河
 * @Description:
 * @Date: 2024-07-15 14:39:08
 * @Version: 1.0
 */
@RestController
@RequestMapping("/orders/")
public class OrderController {

    private final OrderService orderService;

    @Autowired
    public OrderController(OrderService orderService) {
        this.orderService = orderService;
    }

    @RequestMapping("order")
    public SaResult getOrderDetails(@RequestBody OrderQo orderQo) {
        return orderService.getOrderDetails(orderQo);
    }

}
